#include("/include/pageForm.html",action="admin/clearing/detail/searchChannelError")

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="admin/clearing/detail/searchChannelError" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>商户号：</label>
				<input type="text" name="merchCode" value="#(merchCode)"/>
			</li>
			<li>
				<label>订单号：</label>
				<input type="text" name="orderNo" value="#(orderNo)"/>
			</li>
		</ul>
		<ul class="searchContent">
			
			<li>
				<label>开始日期：</label>
				<input type="text" name="settleDateStart" value="#(settleDateStart)" class="date textInput readonly valid" datefmt="yyyy-MM-dd"/> 
			</li>
			<li>
				<label>结束日期：</label>
				<input type="text" name="settleDateEnd" value="#(settleDateEnd)" class="date textInput readonly valid" datefmt="yyyy-MM-dd"/> 
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="reset">重置</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			#auth()
				<li><a class="icon" href="admin/clearing/detail/channelErrorHandlePage?id={id}" target="dialog" width="600" height="400"><span>处理</span></a></li>
			#end
		</ul>
	</div>

	<div id="w_list_print">
	<table class="list" style="width: 100%" targetType="navTab" asc="asc" desc="desc" layoutH="140">
		<thead>
			<tr>
				<th width="100">订单号</th>
				<th width="60">日切日期</th>
				<th width="60">机构号</th>
				<th width="100">商户号</th>
				<th width="80">交易金额</th>
				<th width="80">手续费</th>
				<th width="80">对账状态</th>
				<th width="80">出账状态</th>
				<th width="120">交易时间</th>
			</tr>
		</thead>
		<tbody>
			#for(item : items)
				<tr target="id" rel="#(item.id)">
					<td>#(item.orderNo)</td>
					<td>#(item.settleDate)</td>
					<td>#(item.orgCode)</td>
					<td>#(item.merchCode)</td>
					<td>#number(item.amount.toDouble()/100, "###,###.00")</td>
					<td>#number(item.fee.toDouble()/100, "###,###.00")</td>
					<td>
						#if(item.compareStatus == '0')
							初始状态
						#end
						#if(item.compareStatus == '1')
							本地差错
						#end
						#if(item.compareStatus == '2')
							渠道差错
						#end
						#if(item.compareStatus == '3')
							本地成功
						#end
						#if(item.compareStatus == '4')
							渠道成功
						#end
						#if(item.compareStatus == '5')
							对账成功
						#end
					</td>
					<td>
						#if(item.paymentStatus == '0')
							初始
						#end
						#if(item.paymentStatus == '1')
							冻结
						#end
						#if(item.paymentStatus == '2')
							解冻
						#end
						#if(item.paymentStatus == '3')
							未知
						#end
						#if(item.paymentStatus == '4')
							失败
						#end
						#if(item.paymentStatus == '5')
							成功
						#end
					</td>
					<td>#(item.payTime)</td>
				</tr>
			#end
		</tbody>
	</table>
	</div>
	
	#include("/include/page.html")

</div>
